<?php require_once('inc_admin.php'); ?>

	        <!--PAGE CONTENT -->
	        <div id="content">

	            <div class="inner" style="min-height:1200px;">
	                <div class="row">
	                    <div class="col-lg-12">


	            
					  <?php
require_once('inc_admin.php') ;
//连接到数据库
	connect();
	//用户id通过GET方法提交的
	$id=$_GET['id'];
	
	$sql="select * from videotype where tid={$id}";
	$result=mysql_query($sql);
	$row=mysql_fetch_assoc($result);
	
	$sql="delete from videotype where tid={$id}";
	$result=mysql_query($sql)or die ('删除失败！'.mysql_error());
	if (!mysql_error()) {
		
		redirect('typeList.php','删除成功！');
	}
 ?>     
	   

	                    </div>
	                </div>
              </div>
               </div>
     
	   
	   <!-- FOOTER -->
	    <div id="footer">
	       
	    </div>
	    <!--END FOOTER -->
	     <!-- GLOBAL SCRIPTS -->
	    <script src="assets/plugins/jquery-2.0.3.min.js"></script>
	     <script src="assets/plugins/bootstrap/js/bootstrap.min.js"></script>
	    <script src="assets/plugins/modernizr-2.6.2-respond-1.1.0.min.js"></script>
	    <!-- END GLOBAL SCRIPTS -->

























